let xie = document.querySelector('.xie')
function mianbao(){
    let title = location.href
    title = decodeURI(title)
    let reg = /(?<=\?).*/
    let tit = title.match(reg)
    let t = tit[0]
    let i = t.split('&')
    let obj = {};
    i.forEach(item => {
        let itemArr = item.split('=');
        obj[itemArr[0]] = itemArr[1]
    })
    console.log(obj['name'])
    let domStr = ''
    domStr = `<b>首页</b>>
                <b class="xie1">全部分类</b>>
                <b>${obj['name']}</b>
                `
    xie.innerHTML = domStr
}
mianbao()
xie.onclick=function(){
    location.href="./../index.html"
}
$('.xie').on('click','.xie1',function(){
    location.href="./../html/pinpai.html"
})